# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=postgresql-sequential-uuids
_projname=sequential-uuids
pkgver=1.0.2
pkgrel=1
pkgdesc="Generator of sequential UUIDs for PostgreSQL"
url="https://github.com/tvondra/sequential-uuids"
arch="all"
license="MIT"
makedepends="postgresql-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/tvondra/sequential-uuids/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/$_projname-$pkgver"
options="!check"  # no tests provided

build() {
	make
}

package() {
	depends="postgresql$(pg_config --major-version)"

	make DESTDIR="$pkgdir" install
}

sha512sums="
8329532da047f94cd729607c826729fa27eaeb25b02b0685bdf24167993341ef497aec990e8b161d2117031fab0e7fa0198636b631a02053cbcb41d3a65e012d  postgresql-sequential-uuids-1.0.2.tar.gz
"
